package org.itboys.mobile.util;

import org.itboys.mobile.dto.member.SundayWeixinMemberDto;

import javax.servlet.http.HttpServletRequest;

/**
 * java 发送GET、POST请求
 * 
 * @author Administrator
 *
 */
public class MemberUtil {

	//微信端，从session取出用户信息，可能会为空。
	public static SundayWeixinMemberDto getUser(HttpServletRequest request){
		Object object = request.getSession().getAttribute("member");
		/*if(object==null){
			throw new ErroException("member为空");
		}*/
		return (SundayWeixinMemberDto)object;
	}
}